<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="zh">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=11"/>
<meta name="generator" content="Doxygen 1.10.0"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>SARibbon: SARibbonCategory类 参考</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<script type="text/javascript" src="clipboard.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtreedata.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript" src="cookie.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
<link href="doxygen-awesome.css" rel="stylesheet" type="text/css"/>
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr id="projectrow">
  <td id="projectlogo"><img alt="Logo" src="SA-logo.png"/></td>
  <td id="projectalign">
   <div id="projectname">SARibbon<span id="projectnumber">&#160;2.4.2</span>
   </div>
   <div id="projectbrief">SARibbon wiki</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- 制作者 Doxygen 1.10.0 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
var searchBox = new SearchBox("searchBox", "search/",'.html');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
$(function() {
  initMenu('',true,false,'search.php','搜索');
  $(function() { init_search(); });
});
/* @license-end */
</script>
<div id="main-nav"></div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
$(function(){initNavTree('class_s_a_ribbon_category.html',''); initResizable(); });
/* @license-end */
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<div id="MSearchResults">
<div class="SRPage">
<div id="SRIndex">
<div id="SRResults"></div>
<div class="SRStatus" id="Loading">载入中...</div>
<div class="SRStatus" id="Searching">搜索中...</div>
<div class="SRStatus" id="NoMatches">未找到</div>
</div>
</div>
</div>
</div>

<div class="header">
  <div class="summary">
<a href="#nested-classes">类</a> &#124;
<a href="#pub-types">Public 类型</a> &#124;
<a href="#signals">信号</a> &#124;
<a href="#pub-methods">Public 成员函数</a> &#124;
<a href="#pro-methods">Protected 成员函数</a> &#124;
<a href="#properties">属性</a> &#124;
<a href="#friends">友元</a> &#124;
<a href="class_s_a_ribbon_category-members.html">所有成员列表</a>  </div>
  <div class="headertitle"><div class="title">SARibbonCategory类 参考</div></div>
</div><!--header-->
<div class="contents">

<p>Ribbon控件中的分类选项卡页面（Category）  
 <a href="#details">更多...</a></p>

<p><code>#include &lt;<a class="el" href="_s_a_ribbon_category_8h_source.html">SARibbonCategory.h</a>&gt;</code></p>
<div class="dynheader">
类 SARibbonCategory 继承关系图:</div>
<div class="dyncontent">
 <div class="center">
  <img src="class_s_a_ribbon_category.png" alt=""/>
 </div></div>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="nested-classes" name="nested-classes"></a>
类</h2></td></tr>
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">class &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_s_a_ribbon_category_1_1_private_data.html">PrivateData</a></td></tr>
<tr class="memdesc:"><td class="mdescLeft">&#160;</td><td class="mdescRight">ribbon页的代理类 如果需要修改重绘SARibbonCategory，可以通过设置SARibbonCategory::setProxy  <a href="class_s_a_ribbon_category_1_1_private_data.html#details">更多...</a><br /></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="pub-types" name="pub-types"></a>
Public 类型</h2></td></tr>
<tr class="memitem:a9c2ac72a58d46866308aec260ce66935" id="r_a9c2ac72a58d46866308aec260ce66935"><td class="memItemLeft" align="right" valign="top"><a id="a9c2ac72a58d46866308aec260ce66935" name="a9c2ac72a58d46866308aec260ce66935"></a>
using&#160;</td><td class="memItemRight" valign="bottom"><b>FpPannelIterate</b> = std::function&lt; bool(<a class="el" href="class_s_a_ribbon_pannel.html">SARibbonPannel</a>*) &gt;</td></tr>
<tr class="separator:a9c2ac72a58d46866308aec260ce66935"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="signals" name="signals"></a>
信号</h2></td></tr>
<tr class="memitem:a1a790ebd04e637419f0d5a30b7568411" id="r_a1a790ebd04e637419f0d5a30b7568411"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#a1a790ebd04e637419f0d5a30b7568411">categoryNameChanged</a> (const QString &amp;n)</td></tr>
<tr class="memdesc:a1a790ebd04e637419f0d5a30b7568411"><td class="mdescLeft">&#160;</td><td class="mdescRight">category标题发生了改变信号  <br /></td></tr>
<tr class="separator:a1a790ebd04e637419f0d5a30b7568411"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:acc02e337323a625ef7197da071085e66" id="r_acc02e337323a625ef7197da071085e66"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#acc02e337323a625ef7197da071085e66">actionTriggered</a> (QAction *action)</td></tr>
<tr class="memdesc:acc02e337323a625ef7197da071085e66"><td class="mdescLeft">&#160;</td><td class="mdescRight">参考QToolBar::actionTriggered的信号  <br /></td></tr>
<tr class="separator:acc02e337323a625ef7197da071085e66"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="pub-methods" name="pub-methods"></a>
Public 成员函数</h2></td></tr>
<tr class="memitem:a6cc39527a5b656328905b1b968f3e22a" id="r_a6cc39527a5b656328905b1b968f3e22a"><td class="memItemLeft" align="right" valign="top"><a id="a6cc39527a5b656328905b1b968f3e22a" name="a6cc39527a5b656328905b1b968f3e22a"></a>
&#160;</td><td class="memItemRight" valign="bottom"><b>SARibbonCategory</b> (QWidget *p=nullptr)</td></tr>
<tr class="separator:a6cc39527a5b656328905b1b968f3e22a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a1166d53081de365da6ab33a190d245fc" id="r_a1166d53081de365da6ab33a190d245fc"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#a1166d53081de365da6ab33a190d245fc">SARibbonCategory</a> (const QString &amp;name, QWidget *p=nullptr)</td></tr>
<tr class="memdesc:a1166d53081de365da6ab33a190d245fc"><td class="mdescLeft">&#160;</td><td class="mdescRight">带名称的构造函数  <br /></td></tr>
<tr class="separator:a1166d53081de365da6ab33a190d245fc"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a1b01c360973b73fe2cc29aa6b84e85ae" id="r_a1b01c360973b73fe2cc29aa6b84e85ae"><td class="memItemLeft" align="right" valign="top">QString&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#a1b01c360973b73fe2cc29aa6b84e85ae">categoryName</a> () const</td></tr>
<tr class="memdesc:a1b01c360973b73fe2cc29aa6b84e85ae"><td class="mdescLeft">&#160;</td><td class="mdescRight">获取Category名称  <br /></td></tr>
<tr class="separator:a1b01c360973b73fe2cc29aa6b84e85ae"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a5f51edfda126dbc45e8ffddd46113b1b" id="r_a5f51edfda126dbc45e8ffddd46113b1b"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#a5f51edfda126dbc45e8ffddd46113b1b">setCategoryName</a> (const QString &amp;title)</td></tr>
<tr class="memdesc:a5f51edfda126dbc45e8ffddd46113b1b"><td class="mdescLeft">&#160;</td><td class="mdescRight">设置Category名称  <br /></td></tr>
<tr class="separator:a5f51edfda126dbc45e8ffddd46113b1b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab142563b3d7bb8233f9957caab6031c4" id="r_ab142563b3d7bb8233f9957caab6031c4"><td class="memItemLeft" align="right" valign="top"><a class="el" href="class_s_a_ribbon_pannel.html#a9da35ca039ab4045209d5614e4566219">SARibbonPannel::PannelLayoutMode</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#ab142563b3d7bb8233f9957caab6031c4">pannelLayoutMode</a> () const</td></tr>
<tr class="memdesc:ab142563b3d7bb8233f9957caab6031c4"><td class="mdescLeft">&#160;</td><td class="mdescRight">获取面板布局模式  <br /></td></tr>
<tr class="separator:ab142563b3d7bb8233f9957caab6031c4"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a125152d9d3ea7e1ea719193a8ffbb018" id="r_a125152d9d3ea7e1ea719193a8ffbb018"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#a125152d9d3ea7e1ea719193a8ffbb018">setPannelLayoutMode</a> (<a class="el" href="class_s_a_ribbon_pannel.html#a9da35ca039ab4045209d5614e4566219">SARibbonPannel::PannelLayoutMode</a> m)</td></tr>
<tr class="memdesc:a125152d9d3ea7e1ea719193a8ffbb018"><td class="mdescLeft">&#160;</td><td class="mdescRight">设置面板布局模式  <br /></td></tr>
<tr class="separator:a125152d9d3ea7e1ea719193a8ffbb018"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a93a9ccb6d742ce1c5974f8aada372651" id="r_a93a9ccb6d742ce1c5974f8aada372651"><td class="memItemLeft" align="right" valign="top"><a class="el" href="class_s_a_ribbon_pannel.html">SARibbonPannel</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#a93a9ccb6d742ce1c5974f8aada372651">addPannel</a> (const QString &amp;title)</td></tr>
<tr class="memdesc:a93a9ccb6d742ce1c5974f8aada372651"><td class="mdescLeft">&#160;</td><td class="mdescRight">添加面板(pannel)  <br /></td></tr>
<tr class="separator:a93a9ccb6d742ce1c5974f8aada372651"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a962128f143337287c8f8f64e07658ddc" id="r_a962128f143337287c8f8f64e07658ddc"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#a962128f143337287c8f8f64e07658ddc">addPannel</a> (<a class="el" href="class_s_a_ribbon_pannel.html">SARibbonPannel</a> *pannel)</td></tr>
<tr class="memdesc:a962128f143337287c8f8f64e07658ddc"><td class="mdescLeft">&#160;</td><td class="mdescRight">添加pannel  <br /></td></tr>
<tr class="separator:a962128f143337287c8f8f64e07658ddc"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aee21eb566767e74ebc94ca775ebab6ce" id="r_aee21eb566767e74ebc94ca775ebab6ce"><td class="memItemLeft" align="right" valign="top">Q_INVOKABLE void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#aee21eb566767e74ebc94ca775ebab6ce">addPannel</a> (QWidget *pannel)</td></tr>
<tr class="memdesc:aee21eb566767e74ebc94ca775ebab6ce"><td class="mdescLeft">&#160;</td><td class="mdescRight">qt designer专用  <br /></td></tr>
<tr class="separator:aee21eb566767e74ebc94ca775ebab6ce"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:afa0943f8f669bea6748ae3acc58a3998" id="r_afa0943f8f669bea6748ae3acc58a3998"><td class="memItemLeft" align="right" valign="top"><a class="el" href="class_s_a_ribbon_pannel.html">SARibbonPannel</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#afa0943f8f669bea6748ae3acc58a3998">insertPannel</a> (const QString &amp;title, int index)</td></tr>
<tr class="memdesc:afa0943f8f669bea6748ae3acc58a3998"><td class="mdescLeft">&#160;</td><td class="mdescRight">新建一个pannel，并插入到index位置  <br /></td></tr>
<tr class="separator:afa0943f8f669bea6748ae3acc58a3998"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a84948377dc2da168d9301fa4ec6c59e7" id="r_a84948377dc2da168d9301fa4ec6c59e7"><td class="memItemLeft" align="right" valign="top"><a class="el" href="class_s_a_ribbon_pannel.html">SARibbonPannel</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#a84948377dc2da168d9301fa4ec6c59e7">pannelByName</a> (const QString &amp;title) const</td></tr>
<tr class="memdesc:a84948377dc2da168d9301fa4ec6c59e7"><td class="mdescLeft">&#160;</td><td class="mdescRight">通过名字查找pannel  <br /></td></tr>
<tr class="separator:a84948377dc2da168d9301fa4ec6c59e7"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab6bc60db373e4992c91b118fffa66d29" id="r_ab6bc60db373e4992c91b118fffa66d29"><td class="memItemLeft" align="right" valign="top"><a class="el" href="class_s_a_ribbon_pannel.html">SARibbonPannel</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#ab6bc60db373e4992c91b118fffa66d29">pannelByObjectName</a> (const QString &amp;objname) const</td></tr>
<tr class="memdesc:ab6bc60db373e4992c91b118fffa66d29"><td class="mdescLeft">&#160;</td><td class="mdescRight">通过ObjectName查找pannel  <br /></td></tr>
<tr class="separator:ab6bc60db373e4992c91b118fffa66d29"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a9cd3d4b5396840f4fff2dcea54932d0a" id="r_a9cd3d4b5396840f4fff2dcea54932d0a"><td class="memItemLeft" align="right" valign="top"><a class="el" href="class_s_a_ribbon_pannel.html">SARibbonPannel</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#a9cd3d4b5396840f4fff2dcea54932d0a">pannelByIndex</a> (int index) const</td></tr>
<tr class="memdesc:a9cd3d4b5396840f4fff2dcea54932d0a"><td class="mdescLeft">&#160;</td><td class="mdescRight">通过索引找到pannel，如果超过索引范围，会返回nullptr  <br /></td></tr>
<tr class="separator:a9cd3d4b5396840f4fff2dcea54932d0a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a9e65c0636fd72ad648b30beb1f6f98c6" id="r_a9e65c0636fd72ad648b30beb1f6f98c6"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#a9e65c0636fd72ad648b30beb1f6f98c6">pannelIndex</a> (<a class="el" href="class_s_a_ribbon_pannel.html">SARibbonPannel</a> *p) const</td></tr>
<tr class="memdesc:a9e65c0636fd72ad648b30beb1f6f98c6"><td class="mdescLeft">&#160;</td><td class="mdescRight">查找pannel对应的索引  <br /></td></tr>
<tr class="separator:a9e65c0636fd72ad648b30beb1f6f98c6"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aec28cab7f31c9cec5d2dfde0f4867931" id="r_aec28cab7f31c9cec5d2dfde0f4867931"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#aec28cab7f31c9cec5d2dfde0f4867931">movePannel</a> (int from, int to)</td></tr>
<tr class="memdesc:aec28cab7f31c9cec5d2dfde0f4867931"><td class="mdescLeft">&#160;</td><td class="mdescRight">移动一个Pannel从from index到to index  <br /></td></tr>
<tr class="separator:aec28cab7f31c9cec5d2dfde0f4867931"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aab13ff6735efa7e8beea8ab957d04122" id="r_aab13ff6735efa7e8beea8ab957d04122"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#aab13ff6735efa7e8beea8ab957d04122">takePannel</a> (<a class="el" href="class_s_a_ribbon_pannel.html">SARibbonPannel</a> *pannel)</td></tr>
<tr class="memdesc:aab13ff6735efa7e8beea8ab957d04122"><td class="mdescLeft">&#160;</td><td class="mdescRight">把pannel脱离SARibbonCategory的管理  <br /></td></tr>
<tr class="separator:aab13ff6735efa7e8beea8ab957d04122"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a9eaa22261f1cbc2cb5dca50ff842da14" id="r_a9eaa22261f1cbc2cb5dca50ff842da14"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#a9eaa22261f1cbc2cb5dca50ff842da14">removePannel</a> (<a class="el" href="class_s_a_ribbon_pannel.html">SARibbonPannel</a> *pannel)</td></tr>
<tr class="memdesc:a9eaa22261f1cbc2cb5dca50ff842da14"><td class="mdescLeft">&#160;</td><td class="mdescRight">移除Pannel，Category会直接回收SARibbonPannel内存  <br /></td></tr>
<tr class="separator:a9eaa22261f1cbc2cb5dca50ff842da14"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a7d1ac60952d13a47f4900b8120cd066d" id="r_a7d1ac60952d13a47f4900b8120cd066d"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#a7d1ac60952d13a47f4900b8120cd066d">removePannel</a> (int index)</td></tr>
<tr class="memdesc:a7d1ac60952d13a47f4900b8120cd066d"><td class="mdescLeft">&#160;</td><td class="mdescRight">移除pannel  <br /></td></tr>
<tr class="separator:a7d1ac60952d13a47f4900b8120cd066d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a7d1908f933cbd228a4d6f29f3cc6f3ca" id="r_a7d1908f933cbd228a4d6f29f3cc6f3ca"><td class="memItemLeft" align="right" valign="top">QList&lt; <a class="el" href="class_s_a_ribbon_pannel.html">SARibbonPannel</a> * &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#a7d1908f933cbd228a4d6f29f3cc6f3ca">pannelList</a> () const</td></tr>
<tr class="memdesc:a7d1908f933cbd228a4d6f29f3cc6f3ca"><td class="mdescLeft">&#160;</td><td class="mdescRight">返回Category下的所有pannel  <br /></td></tr>
<tr class="separator:a7d1908f933cbd228a4d6f29f3cc6f3ca"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aed2375757d3538b8e0660165f86ba8ee" id="r_aed2375757d3538b8e0660165f86ba8ee"><td class="memItemLeft" align="right" valign="top"><a id="aed2375757d3538b8e0660165f86ba8ee" name="aed2375757d3538b8e0660165f86ba8ee"></a>
QSize&#160;</td><td class="memItemRight" valign="bottom"><b>sizeHint</b> () const Q_DECL_OVERRIDE</td></tr>
<tr class="separator:aed2375757d3538b8e0660165f86ba8ee"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac0e478abe63065e5ae609fe553085192" id="r_ac0e478abe63065e5ae609fe553085192"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#ac0e478abe63065e5ae609fe553085192">isContextCategory</a> () const</td></tr>
<tr class="memdesc:ac0e478abe63065e5ae609fe553085192"><td class="mdescLeft">&#160;</td><td class="mdescRight">如果是ContextCategory，此函数返回true  <br /></td></tr>
<tr class="separator:ac0e478abe63065e5ae609fe553085192"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a91ddadf009ef84718a81502af6a08c42" id="r_a91ddadf009ef84718a81502af6a08c42"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#a91ddadf009ef84718a81502af6a08c42">pannelCount</a> () const</td></tr>
<tr class="memdesc:a91ddadf009ef84718a81502af6a08c42"><td class="mdescLeft">&#160;</td><td class="mdescRight">返回pannel的个数  <br /></td></tr>
<tr class="separator:a91ddadf009ef84718a81502af6a08c42"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aae6390135cb8d1a27a3886502bf84f2b" id="r_aae6390135cb8d1a27a3886502bf84f2b"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#aae6390135cb8d1a27a3886502bf84f2b">isCanCustomize</a> () const</td></tr>
<tr class="memdesc:aae6390135cb8d1a27a3886502bf84f2b"><td class="mdescLeft">&#160;</td><td class="mdescRight">判断是否可以自定义  <br /></td></tr>
<tr class="separator:aae6390135cb8d1a27a3886502bf84f2b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a028f75e0d23521fb13b369b2c1833289" id="r_a028f75e0d23521fb13b369b2c1833289"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#a028f75e0d23521fb13b369b2c1833289">setCanCustomize</a> (bool b)</td></tr>
<tr class="memdesc:a028f75e0d23521fb13b369b2c1833289"><td class="mdescLeft">&#160;</td><td class="mdescRight">设置是否可以自定义  <br /></td></tr>
<tr class="separator:a028f75e0d23521fb13b369b2c1833289"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:acb848a0b42a43e782adcab9a1524e21a" id="r_acb848a0b42a43e782adcab9a1524e21a"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#acb848a0b42a43e782adcab9a1524e21a">pannelTitleHeight</a> () const</td></tr>
<tr class="memdesc:acb848a0b42a43e782adcab9a1524e21a"><td class="mdescLeft">&#160;</td><td class="mdescRight">pannel标题栏的高度  <br /></td></tr>
<tr class="separator:acb848a0b42a43e782adcab9a1524e21a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af8b5a486dbf219ab297fc7f50bf62750" id="r_af8b5a486dbf219ab297fc7f50bf62750"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#af8b5a486dbf219ab297fc7f50bf62750">setPannelTitleHeight</a> (int h)</td></tr>
<tr class="memdesc:af8b5a486dbf219ab297fc7f50bf62750"><td class="mdescLeft">&#160;</td><td class="mdescRight">设置pannel的高度  <br /></td></tr>
<tr class="separator:af8b5a486dbf219ab297fc7f50bf62750"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ad426bc731549585ae84a91dc44711046" id="r_ad426bc731549585ae84a91dc44711046"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#ad426bc731549585ae84a91dc44711046">isEnableShowPannelTitle</a> () const</td></tr>
<tr class="memdesc:ad426bc731549585ae84a91dc44711046"><td class="mdescLeft">&#160;</td><td class="mdescRight">是否pannel显示标题栏  <br /></td></tr>
<tr class="separator:ad426bc731549585ae84a91dc44711046"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae942e6a3333343a8247fa44279e8b61c" id="r_ae942e6a3333343a8247fa44279e8b61c"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#ae942e6a3333343a8247fa44279e8b61c">setEnableShowPannelTitle</a> (bool on)</td></tr>
<tr class="memdesc:ae942e6a3333343a8247fa44279e8b61c"><td class="mdescLeft">&#160;</td><td class="mdescRight">设置显示pannel标题  <br /></td></tr>
<tr class="separator:ae942e6a3333343a8247fa44279e8b61c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:afb927006b3c823dd1b424aea7b41c816" id="r_afb927006b3c823dd1b424aea7b41c816"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#afb927006b3c823dd1b424aea7b41c816">setCategoryAlignment</a> (SARibbonAlignment al)</td></tr>
<tr class="memdesc:afb927006b3c823dd1b424aea7b41c816"><td class="mdescLeft">&#160;</td><td class="mdescRight">设置Category的对齐方式  <br /></td></tr>
<tr class="separator:afb927006b3c823dd1b424aea7b41c816"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a46b68a3fbc268929f2c3b35252136763" id="r_a46b68a3fbc268929f2c3b35252136763"><td class="memItemLeft" align="right" valign="top">SARibbonAlignment&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#a46b68a3fbc268929f2c3b35252136763">categoryAlignment</a> () const</td></tr>
<tr class="memdesc:a46b68a3fbc268929f2c3b35252136763"><td class="mdescLeft">&#160;</td><td class="mdescRight">Category的对齐方式  <br /></td></tr>
<tr class="separator:a46b68a3fbc268929f2c3b35252136763"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a6105f7017d4dda76b9a785bbef322994" id="r_a6105f7017d4dda76b9a785bbef322994"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#a6105f7017d4dda76b9a785bbef322994">setPannelSpacing</a> (int n)</td></tr>
<tr class="memdesc:a6105f7017d4dda76b9a785bbef322994"><td class="mdescLeft">&#160;</td><td class="mdescRight">设置pannel的spacing  <br /></td></tr>
<tr class="separator:a6105f7017d4dda76b9a785bbef322994"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a51aa73d9804e80b76a2fab4476d422f3" id="r_a51aa73d9804e80b76a2fab4476d422f3"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#a51aa73d9804e80b76a2fab4476d422f3">pannelSpacing</a> () const</td></tr>
<tr class="memdesc:a51aa73d9804e80b76a2fab4476d422f3"><td class="mdescLeft">&#160;</td><td class="mdescRight">pannel的spacing  <br /></td></tr>
<tr class="separator:a51aa73d9804e80b76a2fab4476d422f3"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a17a515badb20dc30abcf225ca988b574" id="r_a17a515badb20dc30abcf225ca988b574"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#a17a515badb20dc30abcf225ca988b574">setPannelToolButtonIconSize</a> (const QSize &amp;s)</td></tr>
<tr class="memdesc:a17a515badb20dc30abcf225ca988b574"><td class="mdescLeft">&#160;</td><td class="mdescRight">设置pannel按钮的icon尺寸，large action不受此尺寸影响  <br /></td></tr>
<tr class="separator:a17a515badb20dc30abcf225ca988b574"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a28767c27e4a37c91aabe910e6cfb2467" id="r_a28767c27e4a37c91aabe910e6cfb2467"><td class="memItemLeft" align="right" valign="top">QSize&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#a28767c27e4a37c91aabe910e6cfb2467">pannelToolButtonIconSize</a> () const</td></tr>
<tr class="memdesc:a28767c27e4a37c91aabe910e6cfb2467"><td class="mdescLeft">&#160;</td><td class="mdescRight">pannel按钮的icon尺寸，large action不受此尺寸影响  <br /></td></tr>
<tr class="separator:a28767c27e4a37c91aabe910e6cfb2467"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a11e8929bc68b8e3679bbd6b22b36dd04" id="r_a11e8929bc68b8e3679bbd6b22b36dd04"><td class="memItemLeft" align="right" valign="top"><a class="el" href="class_s_a_ribbon_bar.html">SARibbonBar</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#a11e8929bc68b8e3679bbd6b22b36dd04">ribbonBar</a> () const</td></tr>
<tr class="memdesc:a11e8929bc68b8e3679bbd6b22b36dd04"><td class="mdescLeft">&#160;</td><td class="mdescRight">获取对应的ribbonbar  <br /></td></tr>
<tr class="separator:a11e8929bc68b8e3679bbd6b22b36dd04"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a7aad68390beacf30cf5d46ae1b359385" id="r_a7aad68390beacf30cf5d46ae1b359385"><td class="memItemLeft" align="right" valign="top"><a id="a7aad68390beacf30cf5d46ae1b359385" name="a7aad68390beacf30cf5d46ae1b359385"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><b>updateItemGeometry</b> ()</td></tr>
<tr class="memdesc:a7aad68390beacf30cf5d46ae1b359385"><td class="mdescLeft">&#160;</td><td class="mdescRight">刷新category的布局，适用于改变ribbon的模式之后调用 <br /></td></tr>
<tr class="separator:a7aad68390beacf30cf5d46ae1b359385"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:abf005808835a1755fcac6dd4e836615d" id="r_abf005808835a1755fcac6dd4e836615d"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#abf005808835a1755fcac6dd4e836615d">setUseAnimatingScroll</a> (bool useAnimating)</td></tr>
<tr class="memdesc:abf005808835a1755fcac6dd4e836615d"><td class="mdescLeft">&#160;</td><td class="mdescRight">设置滚动时是否使用动画  <br /></td></tr>
<tr class="separator:abf005808835a1755fcac6dd4e836615d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac16035474d6c0ba7a7ab14226c08bee4" id="r_ac16035474d6c0ba7a7ab14226c08bee4"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#ac16035474d6c0ba7a7ab14226c08bee4">isUseAnimatingScroll</a> () const</td></tr>
<tr class="memdesc:ac16035474d6c0ba7a7ab14226c08bee4"><td class="mdescLeft">&#160;</td><td class="mdescRight">滚动时是否使用动画  <br /></td></tr>
<tr class="separator:ac16035474d6c0ba7a7ab14226c08bee4"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac4a44f0edf25e2fde1301ffbd13b3106" id="r_ac4a44f0edf25e2fde1301ffbd13b3106"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#ac4a44f0edf25e2fde1301ffbd13b3106">setWheelScrollStep</a> (int step)</td></tr>
<tr class="memdesc:ac4a44f0edf25e2fde1301ffbd13b3106"><td class="mdescLeft">&#160;</td><td class="mdescRight">设置滚轮滚动步长（px）  <br /></td></tr>
<tr class="separator:ac4a44f0edf25e2fde1301ffbd13b3106"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac1855417cdedfcc21a1509a9e3c9253c" id="r_ac1855417cdedfcc21a1509a9e3c9253c"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#ac1855417cdedfcc21a1509a9e3c9253c">wheelScrollStep</a> () const</td></tr>
<tr class="memdesc:ac1855417cdedfcc21a1509a9e3c9253c"><td class="mdescLeft">&#160;</td><td class="mdescRight">滚轮的滚动步长  <br /></td></tr>
<tr class="separator:ac1855417cdedfcc21a1509a9e3c9253c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a00d2112e4f9b37bb1e5ba8c406674b7b" id="r_a00d2112e4f9b37bb1e5ba8c406674b7b"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#a00d2112e4f9b37bb1e5ba8c406674b7b">setAnimationDuration</a> (int duration)</td></tr>
<tr class="memdesc:a00d2112e4f9b37bb1e5ba8c406674b7b"><td class="mdescLeft">&#160;</td><td class="mdescRight">设置动画持续时间  <br /></td></tr>
<tr class="separator:a00d2112e4f9b37bb1e5ba8c406674b7b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac111e8264e01b44d3dd34a6490742987" id="r_ac111e8264e01b44d3dd34a6490742987"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#ac111e8264e01b44d3dd34a6490742987">animationDuration</a> () const</td></tr>
<tr class="memdesc:ac111e8264e01b44d3dd34a6490742987"><td class="mdescLeft">&#160;</td><td class="mdescRight">动画持续时间  <br /></td></tr>
<tr class="separator:ac111e8264e01b44d3dd34a6490742987"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a0925d14e8d55114e6ea9ea0095c71b3e" id="r_a0925d14e8d55114e6ea9ea0095c71b3e"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#a0925d14e8d55114e6ea9ea0095c71b3e">iteratePannel</a> (FpPannelIterate fp) const</td></tr>
<tr class="memdesc:a0925d14e8d55114e6ea9ea0095c71b3e"><td class="mdescLeft">&#160;</td><td class="mdescRight">此函数会遍历Category下的所有pannel,执行函数指针  <br /></td></tr>
<tr class="separator:a0925d14e8d55114e6ea9ea0095c71b3e"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="pro-methods" name="pro-methods"></a>
Protected 成员函数</h2></td></tr>
<tr class="memitem:ab4b0c63d1c5aac3a3ec0c3c89cab92e0" id="r_ab4b0c63d1c5aac3a3ec0c3c89cab92e0"><td class="memItemLeft" align="right" valign="top"><a id="ab4b0c63d1c5aac3a3ec0c3c89cab92e0" name="ab4b0c63d1c5aac3a3ec0c3c89cab92e0"></a>
virtual bool&#160;</td><td class="memItemRight" valign="bottom"><b>event</b> (QEvent *e) override</td></tr>
<tr class="separator:ab4b0c63d1c5aac3a3ec0c3c89cab92e0"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a965efa3e56d73d16a1aa0f3d40a35da4" id="r_a965efa3e56d73d16a1aa0f3d40a35da4"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#a965efa3e56d73d16a1aa0f3d40a35da4">wheelEvent</a> (QWheelEvent *event) override</td></tr>
<tr class="memdesc:a965efa3e56d73d16a1aa0f3d40a35da4"><td class="mdescLeft">&#160;</td><td class="mdescRight">滚动事件  <br /></td></tr>
<tr class="separator:a965efa3e56d73d16a1aa0f3d40a35da4"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab85a4efa8283cdb157277bb88fb8016d" id="r_ab85a4efa8283cdb157277bb88fb8016d"><td class="memItemLeft" align="right" valign="top"><a id="ab85a4efa8283cdb157277bb88fb8016d" name="ab85a4efa8283cdb157277bb88fb8016d"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><b>changeEvent</b> (QEvent *event) override</td></tr>
<tr class="separator:ab85a4efa8283cdb157277bb88fb8016d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a5f32aa0f400ddd9df6ced05a78d25722" id="r_a5f32aa0f400ddd9df6ced05a78d25722"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#a5f32aa0f400ddd9df6ced05a78d25722">markIsContextCategory</a> (bool <a class="el" href="#ac0e478abe63065e5ae609fe553085192">isContextCategory</a>=true)</td></tr>
<tr class="memdesc:a5f32aa0f400ddd9df6ced05a78d25722"><td class="mdescLeft">&#160;</td><td class="mdescRight">标记这个是上下文标签  <br /></td></tr>
<tr class="separator:a5f32aa0f400ddd9df6ced05a78d25722"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aed5137f2d0766699f471a4226ae13a80" id="r_aed5137f2d0766699f471a4226ae13a80"><td class="memItemLeft" align="right" valign="top"><a class="el" href="class_s_a_ribbon_category_layout.html">SARibbonCategoryLayout</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#aed5137f2d0766699f471a4226ae13a80">categoryLayout</a> () const</td></tr>
<tr class="memdesc:aed5137f2d0766699f471a4226ae13a80"><td class="mdescLeft">&#160;</td><td class="mdescRight">获取SARibbonCategoryLayoutlayout  <br /></td></tr>
<tr class="separator:aed5137f2d0766699f471a4226ae13a80"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="properties" name="properties"></a>
属性</h2></td></tr>
<tr class="memitem:a755dfb5cc6624694d3ea253e10a6dc52" id="r_a755dfb5cc6624694d3ea253e10a6dc52"><td class="memItemLeft" align="right" valign="top"><a id="a755dfb5cc6624694d3ea253e10a6dc52" name="a755dfb5cc6624694d3ea253e10a6dc52"></a>
bool&#160;</td><td class="memItemRight" valign="bottom"><b>isCanCustomize</b></td></tr>
<tr class="separator:a755dfb5cc6624694d3ea253e10a6dc52"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a693af9886bc46dc7e99ed5b132bcd160" id="r_a693af9886bc46dc7e99ed5b132bcd160"><td class="memItemLeft" align="right" valign="top"><a id="a693af9886bc46dc7e99ed5b132bcd160" name="a693af9886bc46dc7e99ed5b132bcd160"></a>
QString&#160;</td><td class="memItemRight" valign="bottom"><b>categoryName</b></td></tr>
<tr class="separator:a693af9886bc46dc7e99ed5b132bcd160"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="friends" name="friends"></a>
友元</h2></td></tr>
<tr class="memitem:a1fb4c4fe02f19abd32864cc35bc2417a" id="r_a1fb4c4fe02f19abd32864cc35bc2417a"><td class="memItemLeft" align="right" valign="top"><a id="a1fb4c4fe02f19abd32864cc35bc2417a" name="a1fb4c4fe02f19abd32864cc35bc2417a"></a>
class&#160;</td><td class="memItemRight" valign="bottom"><b>SARibbonBar</b></td></tr>
<tr class="separator:a1fb4c4fe02f19abd32864cc35bc2417a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ad5f7052b752843219baadb2b7e291ea2" id="r_ad5f7052b752843219baadb2b7e291ea2"><td class="memItemLeft" align="right" valign="top"><a id="ad5f7052b752843219baadb2b7e291ea2" name="ad5f7052b752843219baadb2b7e291ea2"></a>
class&#160;</td><td class="memItemRight" valign="bottom"><b>SARibbonContextCategory</b></td></tr>
<tr class="separator:ad5f7052b752843219baadb2b7e291ea2"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">详细描述</h2>
<div class="textblock"><p>Ribbon控件中的分类选项卡页面（Category） </p>
<p>每个Category代表Ribbon中的一个标签页，包含多个面板(Pannel) </p>
</div><h2 class="groupheader">构造及析构函数说明</h2>
<a id="a1166d53081de365da6ab33a190d245fc" name="a1166d53081de365da6ab33a190d245fc"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a1166d53081de365da6ab33a190d245fc">&#9670;&#160;</a></span>SARibbonCategory()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">SARibbonCategory::SARibbonCategory </td>
          <td>(</td>
          <td class="paramtype">const QString &amp;</td>          <td class="paramname"><span class="paramname"><em>name</em>, </span></td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">QWidget *</td>          <td class="paramname"><span class="paramname"><em>p</em><span class="paramdefsep"> = </span><span class="paramdefval">nullptr</span></span>&#160;)</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">explicit</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>带名称的构造函数 </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">name</td><td>Category名称 </td></tr>
    <tr><td class="paramname">p</td><td>父级控件指针 </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<h2 class="groupheader">成员函数说明</h2>
<a id="acc02e337323a625ef7197da071085e66" name="acc02e337323a625ef7197da071085e66"></a>
<h2 class="memtitle"><span class="permalink"><a href="#acc02e337323a625ef7197da071085e66">&#9670;&#160;</a></span>actionTriggered</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void SARibbonCategory::actionTriggered </td>
          <td>(</td>
          <td class="paramtype">QAction *</td>          <td class="paramname"><span class="paramname"><em>action</em></span></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">signal</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>参考QToolBar::actionTriggered的信号 </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">action</td><td></td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="a93a9ccb6d742ce1c5974f8aada372651" name="a93a9ccb6d742ce1c5974f8aada372651"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a93a9ccb6d742ce1c5974f8aada372651">&#9670;&#160;</a></span>addPannel() <span class="overload">[1/3]</span></h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="class_s_a_ribbon_pannel.html">SARibbonPannel</a> * SARibbonCategory::addPannel </td>
          <td>(</td>
          <td class="paramtype">const QString &amp;</td>          <td class="paramname"><span class="paramname"><em>title</em></span></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>添加面板(pannel) </p>
<dl class="section note"><dt>注解</dt><dd>面板(pannel)的所有权由SARibbonCategory来管理，请不要在外部对其进行销毁 </dd></dl>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">title</td><td>面板(pannel)的标题，在office/wps的三行模式下会显示在面板(pannel)的下方 </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>返回生成的<a class="el" href="class_s_a_ribbon_pannel.html">SARibbonPannel</a> 指针 </dd></dl>
<dl class="section see"><dt>参见</dt><dd>对SARibbonPannel的其他操作，参考 <a class="el" href="#aab13ff6735efa7e8beea8ab957d04122">SARibbonCategory::takePannel</a> </dd></dl>

</div>
</div>
<a id="aee21eb566767e74ebc94ca775ebab6ce" name="aee21eb566767e74ebc94ca775ebab6ce"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aee21eb566767e74ebc94ca775ebab6ce">&#9670;&#160;</a></span>addPannel() <span class="overload">[2/3]</span></h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void SARibbonCategory::addPannel </td>
          <td>(</td>
          <td class="paramtype">QWidget *</td>          <td class="paramname"><span class="paramname"><em>pannel</em></span></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>qt designer专用 </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">pannel</td><td></td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="a962128f143337287c8f8f64e07658ddc" name="a962128f143337287c8f8f64e07658ddc"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a962128f143337287c8f8f64e07658ddc">&#9670;&#160;</a></span>addPannel() <span class="overload">[3/3]</span></h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void SARibbonCategory::addPannel </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="class_s_a_ribbon_pannel.html">SARibbonPannel</a> *</td>          <td class="paramname"><span class="paramname"><em>pannel</em></span></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>添加pannel </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">pannel</td><td>pannel的所有权SARibbonCategory来管理 </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="ac111e8264e01b44d3dd34a6490742987" name="ac111e8264e01b44d3dd34a6490742987"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ac111e8264e01b44d3dd34a6490742987">&#9670;&#160;</a></span>animationDuration()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int SARibbonCategory::animationDuration </td>
          <td>(</td>
          <td class="paramname"><span class="paramname"></span></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>动画持续时间 </p>
<dl class="section return"><dt>返回</dt><dd></dd></dl>

</div>
</div>
<a id="a46b68a3fbc268929f2c3b35252136763" name="a46b68a3fbc268929f2c3b35252136763"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a46b68a3fbc268929f2c3b35252136763">&#9670;&#160;</a></span>categoryAlignment()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">SARibbonAlignment SARibbonCategory::categoryAlignment </td>
          <td>(</td>
          <td class="paramname"><span class="paramname"></span></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Category的对齐方式 </p>
<dl class="section return"><dt>返回</dt><dd></dd></dl>

</div>
</div>
<a id="aed5137f2d0766699f471a4226ae13a80" name="aed5137f2d0766699f471a4226ae13a80"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aed5137f2d0766699f471a4226ae13a80">&#9670;&#160;</a></span>categoryLayout()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="class_s_a_ribbon_category_layout.html">SARibbonCategoryLayout</a> * SARibbonCategory::categoryLayout </td>
          <td>(</td>
          <td class="paramname"><span class="paramname"></span></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">protected</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>获取SARibbonCategoryLayoutlayout </p>
<dl class="section return"><dt>返回</dt><dd></dd></dl>

</div>
</div>
<a id="a1b01c360973b73fe2cc29aa6b84e85ae" name="a1b01c360973b73fe2cc29aa6b84e85ae"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a1b01c360973b73fe2cc29aa6b84e85ae">&#9670;&#160;</a></span>categoryName()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">QString SARibbonCategory::categoryName </td>
          <td>(</td>
          <td class="paramname"><span class="paramname"></span></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>获取Category名称 </p>
<dl class="section return"><dt>返回</dt><dd>当前Category的名称（即windowTitle） </dd></dl>

</div>
</div>
<a id="a1a790ebd04e637419f0d5a30b7568411" name="a1a790ebd04e637419f0d5a30b7568411"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a1a790ebd04e637419f0d5a30b7568411">&#9670;&#160;</a></span>categoryNameChanged</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void SARibbonCategory::categoryNameChanged </td>
          <td>(</td>
          <td class="paramtype">const QString &amp;</td>          <td class="paramname"><span class="paramname"><em>n</em></span></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">signal</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>category标题发生了改变信号 </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">n</td><td></td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="afa0943f8f669bea6748ae3acc58a3998" name="afa0943f8f669bea6748ae3acc58a3998"></a>
<h2 class="memtitle"><span class="permalink"><a href="#afa0943f8f669bea6748ae3acc58a3998">&#9670;&#160;</a></span>insertPannel()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="class_s_a_ribbon_pannel.html">SARibbonPannel</a> * SARibbonCategory::insertPannel </td>
          <td>(</td>
          <td class="paramtype">const QString &amp;</td>          <td class="paramname"><span class="paramname"><em>title</em>, </span></td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int</td>          <td class="paramname"><span class="paramname"><em>index</em></span>&#160;)</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>新建一个pannel，并插入到index位置 </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">title</td><td>pannel的title </td></tr>
    <tr><td class="paramname">index</td><td>插入的位置，如果index超出category里pannel的个数，将插入到最后 </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>返回生成的<a class="el" href="class_s_a_ribbon_pannel.html">SARibbonPannel</a> 指针 </dd></dl>
<dl class="section note"><dt>注解</dt><dd>如果 </dd></dl>

</div>
</div>
<a id="aae6390135cb8d1a27a3886502bf84f2b" name="aae6390135cb8d1a27a3886502bf84f2b"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aae6390135cb8d1a27a3886502bf84f2b">&#9670;&#160;</a></span>isCanCustomize()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool SARibbonCategory::isCanCustomize </td>
          <td>(</td>
          <td class="paramname"><span class="paramname"></span></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>判断是否可以自定义 </p>
<dl class="section return"><dt>返回</dt><dd></dd></dl>

</div>
</div>
<a id="ac0e478abe63065e5ae609fe553085192" name="ac0e478abe63065e5ae609fe553085192"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ac0e478abe63065e5ae609fe553085192">&#9670;&#160;</a></span>isContextCategory()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool SARibbonCategory::isContextCategory </td>
          <td>(</td>
          <td class="paramname"><span class="paramname"></span></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>如果是ContextCategory，此函数返回true </p>
<dl class="section return"><dt>返回</dt><dd></dd></dl>

</div>
</div>
<a id="ad426bc731549585ae84a91dc44711046" name="ad426bc731549585ae84a91dc44711046"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ad426bc731549585ae84a91dc44711046">&#9670;&#160;</a></span>isEnableShowPannelTitle()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool SARibbonCategory::isEnableShowPannelTitle </td>
          <td>(</td>
          <td class="paramname"><span class="paramname"></span></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>是否pannel显示标题栏 </p>
<dl class="section return"><dt>返回</dt><dd></dd></dl>

</div>
</div>
<a id="ac16035474d6c0ba7a7ab14226c08bee4" name="ac16035474d6c0ba7a7ab14226c08bee4"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ac16035474d6c0ba7a7ab14226c08bee4">&#9670;&#160;</a></span>isUseAnimatingScroll()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool SARibbonCategory::isUseAnimatingScroll </td>
          <td>(</td>
          <td class="paramname"><span class="paramname"></span></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>滚动时是否使用动画 </p>
<dl class="section return"><dt>返回</dt><dd></dd></dl>

</div>
</div>
<a id="a0925d14e8d55114e6ea9ea0095c71b3e" name="a0925d14e8d55114e6ea9ea0095c71b3e"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a0925d14e8d55114e6ea9ea0095c71b3e">&#9670;&#160;</a></span>iteratePannel()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool SARibbonCategory::iteratePannel </td>
          <td>(</td>
          <td class="paramtype">FpPannelIterate</td>          <td class="paramname"><span class="paramname"><em>fp</em></span></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>此函数会遍历Category下的所有pannel,执行函数指针 </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">fp</td><td>函数指针返回false则停止迭代 </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>返回false代表没有迭代完所有的category，中途接收到回调函数的false返回而中断迭代 </dd></dl>

</div>
</div>
<a id="a5f32aa0f400ddd9df6ced05a78d25722" name="a5f32aa0f400ddd9df6ced05a78d25722"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a5f32aa0f400ddd9df6ced05a78d25722">&#9670;&#160;</a></span>markIsContextCategory()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void SARibbonCategory::markIsContextCategory </td>
          <td>(</td>
          <td class="paramtype">bool</td>          <td class="paramname"><span class="paramname"><em>isContextCategory</em><span class="paramdefsep"> = </span><span class="paramdefval">true</span></span></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">protected</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>标记这个是上下文标签 </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">isContextCategory</td><td></td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="aec28cab7f31c9cec5d2dfde0f4867931" name="aec28cab7f31c9cec5d2dfde0f4867931"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aec28cab7f31c9cec5d2dfde0f4867931">&#9670;&#160;</a></span>movePannel()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void SARibbonCategory::movePannel </td>
          <td>(</td>
          <td class="paramtype">int</td>          <td class="paramname"><span class="paramname"><em>from</em>, </span></td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int</td>          <td class="paramname"><span class="paramname"><em>to</em></span>&#160;)</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>移动一个Pannel从from index到to index </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">from</td><td>要移动pannel的index </td></tr>
    <tr><td class="paramname">to</td><td>要移动到的位置 </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="a9cd3d4b5396840f4fff2dcea54932d0a" name="a9cd3d4b5396840f4fff2dcea54932d0a"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a9cd3d4b5396840f4fff2dcea54932d0a">&#9670;&#160;</a></span>pannelByIndex()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="class_s_a_ribbon_pannel.html">SARibbonPannel</a> * SARibbonCategory::pannelByIndex </td>
          <td>(</td>
          <td class="paramtype">int</td>          <td class="paramname"><span class="paramname"><em>index</em></span></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>通过索引找到pannel，如果超过索引范围，会返回nullptr </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">index</td><td></td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>如果超过索引范围，会返回nullptr </dd></dl>

</div>
</div>
<a id="a84948377dc2da168d9301fa4ec6c59e7" name="a84948377dc2da168d9301fa4ec6c59e7"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a84948377dc2da168d9301fa4ec6c59e7">&#9670;&#160;</a></span>pannelByName()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="class_s_a_ribbon_pannel.html">SARibbonPannel</a> * SARibbonCategory::pannelByName </td>
          <td>(</td>
          <td class="paramtype">const QString &amp;</td>          <td class="paramname"><span class="paramname"><em>title</em></span></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>通过名字查找pannel </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">title</td><td></td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>如果有重名，只会返回第一个符合条件的 </dd></dl>

</div>
</div>
<a id="ab6bc60db373e4992c91b118fffa66d29" name="ab6bc60db373e4992c91b118fffa66d29"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ab6bc60db373e4992c91b118fffa66d29">&#9670;&#160;</a></span>pannelByObjectName()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="class_s_a_ribbon_pannel.html">SARibbonPannel</a> * SARibbonCategory::pannelByObjectName </td>
          <td>(</td>
          <td class="paramtype">const QString &amp;</td>          <td class="paramname"><span class="paramname"><em>objname</em></span></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>通过ObjectName查找pannel </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">objname</td><td></td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd></dd></dl>

</div>
</div>
<a id="a91ddadf009ef84718a81502af6a08c42" name="a91ddadf009ef84718a81502af6a08c42"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a91ddadf009ef84718a81502af6a08c42">&#9670;&#160;</a></span>pannelCount()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int SARibbonCategory::pannelCount </td>
          <td>(</td>
          <td class="paramname"><span class="paramname"></span></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>返回pannel的个数 </p>
<dl class="section return"><dt>返回</dt><dd></dd></dl>

</div>
</div>
<a id="a9e65c0636fd72ad648b30beb1f6f98c6" name="a9e65c0636fd72ad648b30beb1f6f98c6"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a9e65c0636fd72ad648b30beb1f6f98c6">&#9670;&#160;</a></span>pannelIndex()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int SARibbonCategory::pannelIndex </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="class_s_a_ribbon_pannel.html">SARibbonPannel</a> *</td>          <td class="paramname"><span class="paramname"><em>p</em></span></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>查找pannel对应的索引 </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">p</td><td></td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>如果找不到，返回-1 </dd></dl>

</div>
</div>
<a id="ab142563b3d7bb8233f9957caab6031c4" name="ab142563b3d7bb8233f9957caab6031c4"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ab142563b3d7bb8233f9957caab6031c4">&#9670;&#160;</a></span>pannelLayoutMode()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="class_s_a_ribbon_pannel.html#a9da35ca039ab4045209d5614e4566219">SARibbonPannel::PannelLayoutMode</a> SARibbonCategory::pannelLayoutMode </td>
          <td>(</td>
          <td class="paramname"><span class="paramname"></span></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>获取面板布局模式 </p>
<dl class="section return"><dt>返回</dt><dd>当前所有面板的布局模式 </dd></dl>

</div>
</div>
<a id="a7d1908f933cbd228a4d6f29f3cc6f3ca" name="a7d1908f933cbd228a4d6f29f3cc6f3ca"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a7d1908f933cbd228a4d6f29f3cc6f3ca">&#9670;&#160;</a></span>pannelList()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">QList&lt; <a class="el" href="class_s_a_ribbon_pannel.html">SARibbonPannel</a> * &gt; SARibbonCategory::pannelList </td>
          <td>(</td>
          <td class="paramname"><span class="paramname"></span></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>返回Category下的所有pannel </p>
<dl class="section return"><dt>返回</dt><dd></dd></dl>

</div>
</div>
<a id="a51aa73d9804e80b76a2fab4476d422f3" name="a51aa73d9804e80b76a2fab4476d422f3"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a51aa73d9804e80b76a2fab4476d422f3">&#9670;&#160;</a></span>pannelSpacing()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int SARibbonCategory::pannelSpacing </td>
          <td>(</td>
          <td class="paramname"><span class="paramname"></span></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>pannel的spacing </p>
<dl class="section return"><dt>返回</dt><dd></dd></dl>

</div>
</div>
<a id="acb848a0b42a43e782adcab9a1524e21a" name="acb848a0b42a43e782adcab9a1524e21a"></a>
<h2 class="memtitle"><span class="permalink"><a href="#acb848a0b42a43e782adcab9a1524e21a">&#9670;&#160;</a></span>pannelTitleHeight()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int SARibbonCategory::pannelTitleHeight </td>
          <td>(</td>
          <td class="paramname"><span class="paramname"></span></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>pannel标题栏的高度 </p>
<dl class="section return"><dt>返回</dt><dd></dd></dl>

</div>
</div>
<a id="a28767c27e4a37c91aabe910e6cfb2467" name="a28767c27e4a37c91aabe910e6cfb2467"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a28767c27e4a37c91aabe910e6cfb2467">&#9670;&#160;</a></span>pannelToolButtonIconSize()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">QSize SARibbonCategory::pannelToolButtonIconSize </td>
          <td>(</td>
          <td class="paramname"><span class="paramname"></span></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>pannel按钮的icon尺寸，large action不受此尺寸影响 </p>
<dl class="section return"><dt>返回</dt><dd></dd></dl>

</div>
</div>
<a id="a7d1ac60952d13a47f4900b8120cd066d" name="a7d1ac60952d13a47f4900b8120cd066d"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a7d1ac60952d13a47f4900b8120cd066d">&#9670;&#160;</a></span>removePannel() <span class="overload">[1/2]</span></h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool SARibbonCategory::removePannel </td>
          <td>(</td>
          <td class="paramtype">int</td>          <td class="paramname"><span class="paramname"><em>index</em></span></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>移除pannel </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">index</td><td>pannel的索引，如果超出会返回false </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>成功返回true </dd></dl>

</div>
</div>
<a id="a9eaa22261f1cbc2cb5dca50ff842da14" name="a9eaa22261f1cbc2cb5dca50ff842da14"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a9eaa22261f1cbc2cb5dca50ff842da14">&#9670;&#160;</a></span>removePannel() <span class="overload">[2/2]</span></h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool SARibbonCategory::removePannel </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="class_s_a_ribbon_pannel.html">SARibbonPannel</a> *</td>          <td class="paramname"><span class="paramname"><em>pannel</em></span></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>移除Pannel，Category会直接回收SARibbonPannel内存 </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">pannel</td><td>需要移除的pannel </td></tr>
  </table>
  </dd>
</dl>
<dl class="section note"><dt>注解</dt><dd>移除后pannel为野指针，一般操作完建议把pannel指针设置为nullptr</dd></dl>
<p>此操作等同于：</p>
<div class="fragment"><div class="line"><a class="code hl_class" href="class_s_a_ribbon_pannel.html">SARibbonPannel</a>* pannel;</div>
<div class="line">...</div>
<div class="line"><a class="code hl_function" href="class_s_a_ribbon_pannel.html#ac413d6920760dfa95a98555372b9ee84">category</a>-&gt;<a class="code hl_function" href="#aab13ff6735efa7e8beea8ab957d04122">takePannel</a>(pannel);</div>
<div class="line">pannel-&gt;hide();</div>
<div class="line">pannel-&gt;deleteLater();</div>
<div class="ttc" id="aclass_s_a_ribbon_category_html_aab13ff6735efa7e8beea8ab957d04122"><div class="ttname"><a href="#aab13ff6735efa7e8beea8ab957d04122">SARibbonCategory::takePannel</a></div><div class="ttdeci">bool takePannel(SARibbonPannel *pannel)</div><div class="ttdoc">把pannel脱离SARibbonCategory的管理</div><div class="ttdef"><b>Definition</b> SARibbonCategory.cpp:449</div></div>
<div class="ttc" id="aclass_s_a_ribbon_pannel_html"><div class="ttname"><a href="class_s_a_ribbon_pannel.html">SARibbonPannel</a></div><div class="ttdoc">pannel页窗口，pannel是ribbon的面板用于承放控件</div><div class="ttdef"><b>Definition</b> SARibbonPannel.h:51</div></div>
<div class="ttc" id="aclass_s_a_ribbon_pannel_html_ac413d6920760dfa95a98555372b9ee84"><div class="ttname"><a href="class_s_a_ribbon_pannel.html#ac413d6920760dfa95a98555372b9ee84">SARibbonPannel::category</a></div><div class="ttdeci">SARibbonCategory * category() const</div><div class="ttdoc">获取category指针，如果没有parent，或者不在category管理，返回nullptr</div><div class="ttdef"><b>Definition</b> SARibbonPannel.cpp:803</div></div>
</div><!-- fragment --> 
</div>
</div>
<a id="a11e8929bc68b8e3679bbd6b22b36dd04" name="a11e8929bc68b8e3679bbd6b22b36dd04"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a11e8929bc68b8e3679bbd6b22b36dd04">&#9670;&#160;</a></span>ribbonBar()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="class_s_a_ribbon_bar.html">SARibbonBar</a> * SARibbonCategory::ribbonBar </td>
          <td>(</td>
          <td class="paramname"><span class="paramname"></span></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>获取对应的ribbonbar </p>
<dl class="section return"><dt>返回</dt><dd>如果没有加入ribbonbar的管理，此值为null </dd></dl>

</div>
</div>
<a id="a00d2112e4f9b37bb1e5ba8c406674b7b" name="a00d2112e4f9b37bb1e5ba8c406674b7b"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a00d2112e4f9b37bb1e5ba8c406674b7b">&#9670;&#160;</a></span>setAnimationDuration()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void SARibbonCategory::setAnimationDuration </td>
          <td>(</td>
          <td class="paramtype">int</td>          <td class="paramname"><span class="paramname"><em>duration</em></span></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>设置动画持续时间 </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">duration</td><td></td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="a028f75e0d23521fb13b369b2c1833289" name="a028f75e0d23521fb13b369b2c1833289"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a028f75e0d23521fb13b369b2c1833289">&#9670;&#160;</a></span>setCanCustomize()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void SARibbonCategory::setCanCustomize </td>
          <td>(</td>
          <td class="paramtype">bool</td>          <td class="paramname"><span class="paramname"><em>b</em></span></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>设置是否可以自定义 </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">b</td><td></td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="afb927006b3c823dd1b424aea7b41c816" name="afb927006b3c823dd1b424aea7b41c816"></a>
<h2 class="memtitle"><span class="permalink"><a href="#afb927006b3c823dd1b424aea7b41c816">&#9670;&#160;</a></span>setCategoryAlignment()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void SARibbonCategory::setCategoryAlignment </td>
          <td>(</td>
          <td class="paramtype">SARibbonAlignment</td>          <td class="paramname"><span class="paramname"><em>al</em></span></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>设置Category的对齐方式 </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">al</td><td></td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="a5f51edfda126dbc45e8ffddd46113b1b" name="a5f51edfda126dbc45e8ffddd46113b1b"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a5f51edfda126dbc45e8ffddd46113b1b">&#9670;&#160;</a></span>setCategoryName()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void SARibbonCategory::setCategoryName </td>
          <td>(</td>
          <td class="paramtype">const QString &amp;</td>          <td class="paramname"><span class="paramname"><em>title</em></span></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>设置Category名称 </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">title</td><td>新名称（等价于setWindowTitle） </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="ae942e6a3333343a8247fa44279e8b61c" name="ae942e6a3333343a8247fa44279e8b61c"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ae942e6a3333343a8247fa44279e8b61c">&#9670;&#160;</a></span>setEnableShowPannelTitle()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void SARibbonCategory::setEnableShowPannelTitle </td>
          <td>(</td>
          <td class="paramtype">bool</td>          <td class="paramname"><span class="paramname"><em>on</em></span></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>设置显示pannel标题 </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">on</td><td></td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="a125152d9d3ea7e1ea719193a8ffbb018" name="a125152d9d3ea7e1ea719193a8ffbb018"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a125152d9d3ea7e1ea719193a8ffbb018">&#9670;&#160;</a></span>setPannelLayoutMode()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void SARibbonCategory::setPannelLayoutMode </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="class_s_a_ribbon_pannel.html#a9da35ca039ab4045209d5614e4566219">SARibbonPannel::PannelLayoutMode</a></td>          <td class="paramname"><span class="paramname"><em>m</em></span></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>设置面板布局模式 </p>
<p>在<a class="el" href="class_s_a_ribbon_bar.html">SARibbonBar</a> 调用<a class="el" href="class_s_a_ribbon_bar.html#a7ee2ffcde55433d35705980030b0a38d">SARibbonBar::setRibbonStyle</a> 函数时，会对所有的SARibbonCategory调用此函数 把新的SARibbonPannel::PannelLayoutMode设置进去 </p><dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">m</td><td></td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="a6105f7017d4dda76b9a785bbef322994" name="a6105f7017d4dda76b9a785bbef322994"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a6105f7017d4dda76b9a785bbef322994">&#9670;&#160;</a></span>setPannelSpacing()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void SARibbonCategory::setPannelSpacing </td>
          <td>(</td>
          <td class="paramtype">int</td>          <td class="paramname"><span class="paramname"><em>n</em></span></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>设置pannel的spacing </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">n</td><td></td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="af8b5a486dbf219ab297fc7f50bf62750" name="af8b5a486dbf219ab297fc7f50bf62750"></a>
<h2 class="memtitle"><span class="permalink"><a href="#af8b5a486dbf219ab297fc7f50bf62750">&#9670;&#160;</a></span>setPannelTitleHeight()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void SARibbonCategory::setPannelTitleHeight </td>
          <td>(</td>
          <td class="paramtype">int</td>          <td class="paramname"><span class="paramname"><em>h</em></span></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>设置pannel的高度 </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">h</td><td></td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="a17a515badb20dc30abcf225ca988b574" name="a17a515badb20dc30abcf225ca988b574"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a17a515badb20dc30abcf225ca988b574">&#9670;&#160;</a></span>setPannelToolButtonIconSize()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void SARibbonCategory::setPannelToolButtonIconSize </td>
          <td>(</td>
          <td class="paramtype">const QSize &amp;</td>          <td class="paramname"><span class="paramname"><em>s</em></span></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>设置pannel按钮的icon尺寸，large action不受此尺寸影响 </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">s</td><td></td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="abf005808835a1755fcac6dd4e836615d" name="abf005808835a1755fcac6dd4e836615d"></a>
<h2 class="memtitle"><span class="permalink"><a href="#abf005808835a1755fcac6dd4e836615d">&#9670;&#160;</a></span>setUseAnimatingScroll()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void SARibbonCategory::setUseAnimatingScroll </td>
          <td>(</td>
          <td class="paramtype">bool</td>          <td class="paramname"><span class="paramname"><em>useAnimating</em></span></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>设置滚动时是否使用动画 </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">useAnimating</td><td></td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="ac4a44f0edf25e2fde1301ffbd13b3106" name="ac4a44f0edf25e2fde1301ffbd13b3106"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ac4a44f0edf25e2fde1301ffbd13b3106">&#9670;&#160;</a></span>setWheelScrollStep()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void SARibbonCategory::setWheelScrollStep </td>
          <td>(</td>
          <td class="paramtype">int</td>          <td class="paramname"><span class="paramname"><em>step</em></span></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>设置滚轮滚动步长（px） </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">step</td><td></td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="aab13ff6735efa7e8beea8ab957d04122" name="aab13ff6735efa7e8beea8ab957d04122"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aab13ff6735efa7e8beea8ab957d04122">&#9670;&#160;</a></span>takePannel()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool SARibbonCategory::takePannel </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="class_s_a_ribbon_pannel.html">SARibbonPannel</a> *</td>          <td class="paramname"><span class="paramname"><em>pannel</em></span></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>把pannel脱离SARibbonCategory的管理 </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">pannel</td><td>需要提取的pannel </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>成功返回true，否则返回false </dd></dl>

</div>
</div>
<a id="a965efa3e56d73d16a1aa0f3d40a35da4" name="a965efa3e56d73d16a1aa0f3d40a35da4"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a965efa3e56d73d16a1aa0f3d40a35da4">&#9670;&#160;</a></span>wheelEvent()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void SARibbonCategory::wheelEvent </td>
          <td>(</td>
          <td class="paramtype">QWheelEvent *</td>          <td class="paramname"><span class="paramname"><em>event</em></span></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">override</span><span class="mlabel">protected</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>滚动事件 </p>
<p>在内容超出category的宽度情况下，滚轮可滚动pannel </p><dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">event</td><td></td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="ac1855417cdedfcc21a1509a9e3c9253c" name="ac1855417cdedfcc21a1509a9e3c9253c"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ac1855417cdedfcc21a1509a9e3c9253c">&#9670;&#160;</a></span>wheelScrollStep()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int SARibbonCategory::wheelScrollStep </td>
          <td>(</td>
          <td class="paramname"><span class="paramname"></span></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>滚轮的滚动步长 </p>
<dl class="section return"><dt>返回</dt><dd></dd></dl>

</div>
</div>
<hr/>该类的文档由以下文件生成:<ul>
<li>C:/src/Qt/SARibbon/src/SARibbonBar/<a class="el" href="_s_a_ribbon_category_8h_source.html">SARibbonCategory.h</a></li>
<li>C:/src/Qt/SARibbon/src/SARibbonBar/<b>SARibbonCategory.cpp</b></li>
</ul>
</div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="navelem"><a class="el" href="class_s_a_ribbon_category.html">SARibbonCategory</a></li>
    <li class="footer">制作者 <a href="https://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.10.0 </li>
  </ul>
</div>
</body>
</html>
